package jinyilw.swing.rlaf.ui;

import javax.swing.Icon;
import javax.swing.JButton;

/**
 * @author Jinyi
 */
public class NoFocusButton extends JButton
{
	private static final long serialVersionUID = 3255038734393215778L;

	public NoFocusButton()
	{
		super();
		init();
	}

	public NoFocusButton(Icon ico)
	{
		super(ico);
		init();
	}

	private void init()
	{
		setFocusPainted(false);
		setRolloverEnabled(true);
		setFocusable(false);
	}

	@Override
	public boolean isFocusTraversable()
	{
		return false;
	}

	@Override
	public void requestFocus()
	{
	}
}
